package com.netease.pris.activity;

import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TabHost;
import android.widget.TabWidget;
import android.widget.TextView;
import com.netease.framework.ActivityEx;
import com.netease.framework.k;
import com.netease.image.c;
import com.netease.pris.atom.u;
import com.netease.pris.b;
import com.netease.pris.protocol.d;
import com.netease.pris.v;
import java.util.LinkedList;

public class CustomTabActivity extends ActivityEx
{
  public static final String a = "url";
  private static String e = "";
  public Context b = null;
  View.OnClickListener c = new fg(this);
  b d = new ff(this);
  private int f = 0;
  private String g;
  private String h;
  private d i = null;
  private LinearLayout j = null;
  private TabHost k = null;
  private TabWidget l = null;
  private ProgressBar m;
  private TextView n;

  private void a(int paramInt, Object paramObject, String paramString1, String paramString2)
  {
    switch (paramInt)
    {
    default:
    case 312:
    }
    while (true)
    {
      return;
      this.f = v.a().c(paramString1);
    }
  }

  public static void a(Context paramContext, String paramString)
  {
    Intent localIntent = new Intent(paramContext, CustomTabActivity.class);
    localIntent.putExtra("url", paramString);
    paramContext.startActivity(localIntent);
  }

  private void a(TextView paramTextView, boolean paramBoolean)
  {
    if (paramTextView == null);
    while (true)
    {
      return;
      float f1 = 1.0F;
      int i1 = Color.rgb(240, 240, 240);
      if (!paramBoolean)
      {
        f1 = -1.0F;
        i1 = Color.rgb(0, 0, 0);
      }
      paramTextView.setShadowLayer(0.5F, 0.0F, f1, i1);
    }
  }

  // ERROR //
  private void a(u paramu, boolean paramBoolean)
  {
    // Byte code:
    //   0: aload_1
    //   1: invokevirtual 130	com/netease/pris/atom/u:U	()Ljava/lang/String;
    //   4: astore_3
    //   5: new 81	android/content/Intent
    //   8: dup
    //   9: aload_0
    //   10: ldc 132
    //   12: invokespecial 84	android/content/Intent:<init>	(Landroid/content/Context;Ljava/lang/Class;)V
    //   15: astore 4
    //   17: aload 4
    //   19: getstatic 134	com/netease/pris/activity/CustomListViewActivity:a	Ljava/lang/String;
    //   22: aload_1
    //   23: invokevirtual 137	com/netease/pris/atom/u:bh	()Ljava/lang/String;
    //   26: invokevirtual 88	android/content/Intent:putExtra	(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
    //   29: pop
    //   30: aload 4
    //   32: getstatic 139	com/netease/pris/activity/CustomListViewActivity:b	Ljava/lang/String;
    //   35: aload_1
    //   36: invokevirtual 143	com/netease/pris/atom/u:be	()Lcom/netease/pris/atom/b;
    //   39: invokevirtual 146	android/content/Intent:putExtra	(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;
    //   42: pop
    //   43: aload 4
    //   45: getstatic 148	com/netease/pris/activity/CustomListViewActivity:c	Ljava/lang/String;
    //   48: aload_1
    //   49: invokevirtual 130	com/netease/pris/atom/u:U	()Ljava/lang/String;
    //   52: invokevirtual 88	android/content/Intent:putExtra	(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
    //   55: pop
    //   56: aload_0
    //   57: invokespecial 152	com/netease/pris/activity/CustomTabActivity:t	()Landroid/widget/LinearLayout;
    //   60: astore 8
    //   62: aload 8
    //   64: ldc 153
    //   66: invokevirtual 159	android/widget/LinearLayout:findViewById	(I)Landroid/view/View;
    //   69: checkcast 105	android/widget/TextView
    //   72: astore 9
    //   74: iload_2
    //   75: ifne +20 -> 95
    //   78: aload 9
    //   80: iconst_0
    //   81: iconst_0
    //   82: aload_0
    //   83: invokestatic 164	com/netease/framework/k:a	(Landroid/content/Context;)Lcom/netease/framework/k;
    //   86: ldc 165
    //   88: invokevirtual 168	com/netease/framework/k:a	(I)I
    //   91: iconst_0
    //   92: invokevirtual 172	android/widget/TextView:setCompoundDrawablesWithIntrinsicBounds	(IIII)V
    //   95: aload 9
    //   97: aload_3
    //   98: invokevirtual 176	android/widget/TextView:setText	(Ljava/lang/CharSequence;)V
    //   101: aload_0
    //   102: getfield 50	com/netease/pris/activity/CustomTabActivity:k	Landroid/widget/TabHost;
    //   105: ifnull +111 -> 216
    //   108: aload_0
    //   109: getfield 50	com/netease/pris/activity/CustomTabActivity:k	Landroid/widget/TabHost;
    //   112: new 178	java/lang/StringBuilder
    //   115: dup
    //   116: invokespecial 179	java/lang/StringBuilder:<init>	()V
    //   119: aload_1
    //   120: invokevirtual 182	com/netease/pris/atom/u:bd	()Ljava/lang/String;
    //   123: invokevirtual 186	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   126: aload_1
    //   127: invokevirtual 137	com/netease/pris/atom/u:bh	()Ljava/lang/String;
    //   130: invokevirtual 186	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   133: invokevirtual 189	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   136: invokevirtual 195	android/widget/TabHost:newTabSpec	(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;
    //   139: astore 10
    //   141: aload 10
    //   143: invokevirtual 201	java/lang/Object:getClass	()Ljava/lang/Class;
    //   146: astore 18
    //   148: iconst_1
    //   149: anewarray 203	java/lang/Class
    //   152: astore 19
    //   154: aload 19
    //   156: iconst_0
    //   157: ldc 205
    //   159: aastore
    //   160: aload 18
    //   162: ldc 207
    //   164: aload 19
    //   166: invokevirtual 211	java/lang/Class:getMethod	(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
    //   169: astore 20
    //   171: aload 20
    //   173: iconst_1
    //   174: invokevirtual 217	java/lang/reflect/Method:setAccessible	(Z)V
    //   177: iconst_1
    //   178: anewarray 197	java/lang/Object
    //   181: astore 25
    //   183: aload 25
    //   185: iconst_0
    //   186: aload 8
    //   188: aastore
    //   189: aload 20
    //   191: aload 10
    //   193: aload 25
    //   195: invokevirtual 221	java/lang/reflect/Method:invoke	(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    //   198: pop
    //   199: aload 10
    //   201: aload 4
    //   203: invokevirtual 227	android/widget/TabHost$TabSpec:setContent	(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;
    //   206: pop
    //   207: aload_0
    //   208: getfield 50	com/netease/pris/activity/CustomTabActivity:k	Landroid/widget/TabHost;
    //   211: aload 10
    //   213: invokevirtual 231	android/widget/TabHost:addTab	(Landroid/widget/TabHost$TabSpec;)V
    //   216: return
    //   217: astore 24
    //   219: aload 24
    //   221: invokevirtual 234	java/lang/IllegalArgumentException:printStackTrace	()V
    //   224: goto -25 -> 199
    //   227: astore 16
    //   229: aload 16
    //   231: invokevirtual 235	java/lang/SecurityException:printStackTrace	()V
    //   234: aload 10
    //   236: aload 4
    //   238: invokevirtual 227	android/widget/TabHost$TabSpec:setContent	(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;
    //   241: pop
    //   242: aload_0
    //   243: getfield 50	com/netease/pris/activity/CustomTabActivity:k	Landroid/widget/TabHost;
    //   246: aload 10
    //   248: invokevirtual 231	android/widget/TabHost:addTab	(Landroid/widget/TabHost$TabSpec;)V
    //   251: goto -35 -> 216
    //   254: astore 23
    //   256: aload 23
    //   258: invokevirtual 236	java/lang/IllegalAccessException:printStackTrace	()V
    //   261: goto -62 -> 199
    //   264: astore 13
    //   266: aload 10
    //   268: aload_3
    //   269: invokevirtual 239	android/widget/TabHost$TabSpec:setIndicator	(Ljava/lang/CharSequence;)Landroid/widget/TabHost$TabSpec;
    //   272: pop
    //   273: aload 10
    //   275: aload 4
    //   277: invokevirtual 227	android/widget/TabHost$TabSpec:setContent	(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;
    //   280: pop
    //   281: aload_0
    //   282: getfield 50	com/netease/pris/activity/CustomTabActivity:k	Landroid/widget/TabHost;
    //   285: aload 10
    //   287: invokevirtual 231	android/widget/TabHost:addTab	(Landroid/widget/TabHost$TabSpec;)V
    //   290: goto -74 -> 216
    //   293: astore 21
    //   295: aload 21
    //   297: invokevirtual 240	java/lang/reflect/InvocationTargetException:printStackTrace	()V
    //   300: goto -101 -> 199
    //   303: astore 11
    //   305: aload 10
    //   307: aload 4
    //   309: invokevirtual 227	android/widget/TabHost$TabSpec:setContent	(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;
    //   312: pop
    //   313: aload_0
    //   314: getfield 50	com/netease/pris/activity/CustomTabActivity:k	Landroid/widget/TabHost;
    //   317: aload 10
    //   319: invokevirtual 231	android/widget/TabHost:addTab	(Landroid/widget/TabHost$TabSpec;)V
    //   322: aload 11
    //   324: athrow
    //
    // Exception table:
    //   from	to	target	type
    //   177	199	217	java/lang/IllegalArgumentException
    //   141	177	227	java/lang/SecurityException
    //   177	199	227	java/lang/SecurityException
    //   219	224	227	java/lang/SecurityException
    //   256	261	227	java/lang/SecurityException
    //   295	300	227	java/lang/SecurityException
    //   177	199	254	java/lang/IllegalAccessException
    //   141	177	264	java/lang/NoSuchMethodException
    //   177	199	264	java/lang/NoSuchMethodException
    //   219	224	264	java/lang/NoSuchMethodException
    //   256	261	264	java/lang/NoSuchMethodException
    //   295	300	264	java/lang/NoSuchMethodException
    //   177	199	293	java/lang/reflect/InvocationTargetException
    //   141	177	303	finally
    //   177	199	303	finally
    //   219	224	303	finally
    //   229	234	303	finally
    //   256	261	303	finally
    //   266	273	303	finally
    //   295	300	303	finally
  }

  private void a(d paramd)
  {
    if ((paramd == null) || (paramd.h == null));
    while (true)
    {
      return;
      this.i = paramd;
      if (this.j == null)
      {
        this.j = ((LinearLayout)findViewById(2131558567));
        View localView = LayoutInflater.from(this).inflate(2130903113, null, false);
        this.j.addView(localView, 0);
      }
      h();
      s();
      r();
    }
  }

  private void b(boolean paramBoolean)
  {
    int i1 = 0;
    if (i1 < this.l.getTabCount())
    {
      View localView = this.l.getChildTabViewAt(i1);
      if (localView == null);
      while (true)
      {
        i1++;
        break;
        a((TextView)localView.findViewById(2131558424), paramBoolean);
      }
    }
  }

  private void f()
  {
    setTitle(getString(2131361979));
    if (this.n != null)
    {
      this.n.setBackgroundDrawable(k.a(this).b(2130837812));
      this.n.setText(getString(2131361980));
      this.n.setVisibility(0);
    }
    int i1 = c.a(this.b, 8.0F);
    ((LinearLayout)findViewById(2131558405)).setPadding(0, 0, i1, 0);
  }

  private void g()
  {
    this.n = ((TextView)findViewById(2131558409));
    this.m = ((ProgressBar)findViewById(2131558412));
  }

  private void h()
  {
    this.k = ((TabHost)findViewById(16908306));
    this.l = ((TabWidget)findViewById(16908307));
    this.k.setup(getLocalActivityManager());
  }

  private void r()
  {
    if (this.n != null)
      this.n.setOnClickListener(this.c);
    if (this.k != null)
      this.k.setOnTabChangedListener(new fe(this));
  }

  private void s()
  {
    if ((this.i == null) || (this.i.h == null));
    while (true)
    {
      return;
      int i1 = this.i.h.size();
      if (i1 <= 0)
        continue;
      int i2 = 0;
      if (i2 < i1)
      {
        if (i2 == i1 - 1);
        for (boolean bool = true; ; bool = false)
        {
          a((u)this.i.h.get(i2), bool);
          i2++;
          break;
        }
      }
      this.h = (((u)this.i.h.getFirst()).bd() + ((u)this.i.h.getFirst()).bh());
    }
  }

  private LinearLayout t()
  {
    LinearLayout localLinearLayout = (LinearLayout)LayoutInflater.from(this).inflate(2130903046, this.l, false);
    localLinearLayout.setBackgroundDrawable(k.a(this).b(2130837596));
    a((TextView)localLinearLayout.findViewById(2131558424), k.a(this).c());
    return localLinearLayout;
  }

  public void b()
  {
    this.n.setVisibility(8);
    this.m.setVisibility(0);
  }

  public void c()
  {
    this.n.setVisibility(0);
    this.m.setVisibility(8);
  }

  public void f_()
  {
    b(k.a(this).c());
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903091);
    this.b = this;
    v.a().a(this.d);
    if (getIntent() != null)
      this.g = getIntent().getStringExtra("url");
    g();
    f();
    a(312, null, this.g, null);
    b();
  }

  public void onDestroy()
  {
    super.onDestroy();
    e = "";
    if (this.m != null)
      this.m.setVisibility(8);
  }

  public void onResume()
  {
    super.onResume();
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.CustomTabActivity
 * JD-Core Version:    0.6.0
 */